package request

type ArticleAdd struct {
	UserId int    `form:"userId"  json:"userId" binding:"required"`
	Title  string `form:"title" json:"title" binding:"required"`
	Text   string `form:"text" json:"text" binding:"required"`
}

type ArticleHistory struct {
	UserId    int `form:"userId"  json:"userId" binding:"required"`
	ArticleId int `form:"articleId" json:"articleId" binding:"required"`
}

type ArticleGood struct {
	UserId    int `form:"userId"  json:"userId" binding:"required"`
	ArticleId int `form:"articleId" json:"articleId" binding:"required"`
}

type ReviewAdd struct {
	UserId    int    `form:"userId"  json:"userId" binding:"required"`
	ArticleId int    `form:"articleId"  json:"articleId" binding:"required"`
	ConText   string `form:"conText"  json:"conText" binding:"required"`
}

type ReviewAddAdd struct {
	UserId    int    `form:"userId"  json:"userId" binding:"required"`
	ArticleId int    `form:"articleId"  json:"articleId" binding:"required"`
	FatherId  int    `form:"fatherId"  json:"fatherId" binding:"required"`
	ConText   string `form:"conText"  json:"conText" binding:"required"`
}

type ReviewGood struct {
	UserId   int `form:"userId"  json:"userId" binding:"required"`
	ReviewId int `form:"reviewId"  json:"reviewId" binding:"required"`
}

type ArticleList struct {
	Title string `form:"title" json:"title"`
}

type ReviewDel struct {
	Id int `form:"id"  json:"id" binding:"required"`
}
